package com.ylz.sjzx.sio.room.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author JZJY
 * @version 1.0
 * @date 2020/12/15
 */
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    private String userId;

    private String role;

    private String realname;

    private Long stamp;

    private String message;

    private Long id;

    /**
     * 是否发布 0 未发布  1 发布
     */
    private Integer p;

    private List<Question> children = new ArrayList<>();
}
